/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class Test {
    public static void main(String[] args) {
        String str = "hello";
        StringBuilder stringBuilder = new StringBuilder();
        for(int i = str.length() - 1; i >= 0; i--) {
            stringBuilder.append(str.charAt(i));
        }
        System.out.println(stringBuilder.toString());
    }
}
